<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    for(var i=1;i<=50;i++) {

        if (i == 23) {
            continue;
        }
        if (i == 33) {
            continue;
        }
        if (i == 43) {
            continue;
        }
        document.write(i + "<br />");
    }

</script>
</body>
</html>